using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Comteck.Domain.Entities;

namespace Comteck.Entities.Sys {
  /// <summary>
  /// 
  /// </summary>
  [Table("MenuAuth")]
  public class MenuAuth : Entity<string> {
    /// <summary>
    /// 菜单编码
    /// </summary>
    [Key]
    [DatabaseGenerated(DatabaseGeneratedOption.None)]
    public override string Id { get; set; }

    /// <summary>
    /// 菜单父编码
    /// </summary>
    [MaxLength(50)]
    public virtual string Parent_Id { get; set; }

    /// <summary>
    /// 菜单名称
    /// </summary>
    [Required, MaxLength(50)]
    public virtual string Name { get; set; }

    /// <summary>
    /// 显示方式
    /// </summary>
    [Required]
    public virtual int Show_Mode { get; set; }

    /// <summary>
    /// 状态
    /// </summary>
    [Required]
    public virtual int Status { get; set; }

    /// <summary>
    /// 表单程序集
    /// </summary>
    [MaxLength(200)]
    public virtual string Form_Assembly_Name { get; set; }

    /// <summary>
    /// 表单名
    /// </summary>
    [MaxLength(200)]
    public virtual string Form_Path { get; set; }
  }
}
